package com.yhj.blog.framework.object;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 杨华京
 * @version 1.0
 * @description
 * @since 1.8
 */

@Data
@EqualsAndHashCode(callSuper = false)
public abstract class AbstractDO implements Serializable {

    private static final long serialVersionUID = -2980418706174185023L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private Date createTime;
    private Date updateTime;
}
